<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>奖学金</title>
</head>

<body>
    <script>
        var ranking = prompt("请输入名次查看奖励：");
        if (ranking == 1) {
            alert("奖励1000元！");
        } else if (ranking == 2) {
            alert("奖励800元！");
        } else if (ranking == 3) {
            alert("奖励300元！");
        } else {
            alert("没有任何奖励！");
        }
    </script>
</body>

</html>